/*
 * WaitingView.cpp
 *
 *  Created on: 08/06/2014
 *      Author: javier
 */

#include "WaitingView.h"

WaitingView::WaitingView(BZPView* view, SDLWindow* window) {
	this->view = view;
	this->window = window;
	std::string resDir = properties.getProperty("res_dir");
	std::string textureName = resDir + "waiting.jpg";
	texture = window->loadTexture(textureName);
	geometry.x = 0;
	geometry.y = 0;
	geometry.w = properties.getPropertyAsInt("screen.width");
	geometry.h = properties.getPropertyAsInt("screen.height");
}

void WaitingView::render() {
	window->renderTexture(texture, &geometry);
}

WaitingView::~WaitingView() {
	// TODO Auto-generated destructor stub
}

